package com.hcxdi.app.droidbase.contract;

import com.hcxdi.api.bean.auth.Auth;
import com.hcxdi.api.bean.auth.AuthReq;
import com.hcxdi.base.contract.BaseContract;

import rx.Observable;

/**
 * TODO
 *
 * @author 成都青桔科技有限公司
 * @version 1.0
 * @changelog 16-11-9 初始化
 */
public interface AuthContract extends BaseContract {

    interface View extends BaseView{
        void onAuthed(Auth auth);
        void onError(Throwable msg);
    }

    interface Model<T>{
        Observable<T> loadAuth(AuthReq req);
    }

    interface Presenter{
        void loadAuth(AuthReq req);
    }

}
